clang-tidy modernize-use-auto, but (#483)
only on:
Message: use auto when initializing with new to avoid duplicating the type name
not on:
Message: use auto when initializing with a cast to avoid duplicating the type name
Message: use auto when initializing with a template cast to avoid duplicating the
The later two left me wondering what type I had, while it is obvious with the first
one. Some of this is due to our macro defines for gbffetuint*, gbfputuint*.
This required a edit of the fixes file produced by clang-tidy:
export PAT='with a template' A=3 B=3
vim -Nes "+g/${PAT}/.-${B},.+${A}d" '+w !tee' '+q!' ct8fixes.yaml > tmp1.yaml
export PAT='with a cast' A=2 B=3
vim -Nes "+g/${PAT}/.-${B},.+${A}d" '+w !tee' '+q!' tmp1.yaml > myfixes.yaml
rm ct8fixes.yaml
rm tmp1.yaml
82 files changed: